//
//  UIConfigure.h
//  CedarFinancePH
//
//  Created by lshenrong on 2018/4/8.
//  Copyright © 2018年 cedarhd. All rights reserved.
//

#import <Foundation/Foundation.h>
#import "JSBadgeView.h"


@interface UIConfigure : NSObject


+ (void)configureUITextField:(UITextField *)textField fontSize:(CGFloat)size color:(UIColor *)color;
+ (void)configureUITextField2:(UITextField *)textField fontSize:(CGFloat)size color:(UIColor *)color;
+ (void)configureUITextFieldPlaceholderCenter:(UITextField *)textField fontSize:(CGFloat)size color:(UIColor *)color;

/**
 配置label
 */
+ (void)configureUILabel:(UILabel*)label
                 keyWord:(NSString*)key
           hithlightFont:(UIFont*)font
          highlightColor:(UIColor*)color;


+ (void)configureUILabel:(UILabel*)label
                   range:(NSRange)range
           hithlightFont:(UIFont*)font
          highlightColor:(UIColor*)color;

+ (void)configureUILabel:(UILabel*)label
              startRange:(NSRange)startRange
                endRange:(NSRange)endRange
           hithlightFont:(UIFont*)font
          highlightColor:(UIColor*)color;


+ (void)configRefreshInTableView:(UITableView *)tableView target:(id)target action:(SEL)action;
+ (void)configLoadMoreInTableView:(UITableView *)tableView  target:(id)target action:(SEL)action;
+ (void)configRefreshInFulScreenTableView:(UITableView *)tableView target:(id)target action:(SEL)action;
#pragma mark - control


+ (UIBarButtonItem *)barButtonItemWithTitle:(NSString *)titlte target:(id)target action:(SEL)action;
+ (UIBarButtonItem *)barButtonItemCloseWithTarget:(id)target action:(SEL)action;
+ (UIBarButtonItem *)barWhiteButtonItemCloseWithTarget:(id)target action:(SEL)action;
+ (UIBarButtonItem *)barButtonItemWithTitle:(NSString *)titlte color:(UIColor *)color  target:(id)target action:(SEL)action;

+ (UITableView *)tableViewFromFactory;
+ (UITableView *)tableViewStyleGroupedFromFactory;

+ (UIFont *)configureAPPFont:(CGFloat)fontSize;
+ (UIFont *)configureAPPMediumFont:(CGFloat)fontSize;

+ (JSBadgeView *)redPointView:(UIView *)parentView positon:(JSBadgeViewAlignment)alignment;

+ (UIBarButtonItem *)barButtonItemWithTitle:(NSString *)titlte
                                      color:(UIColor *)color
                             highLightColor:(UIColor *)hColor
                                     target:(id)target
                                     action:(SEL)action;

+ (UIBarButtonItem *)barButtonItemWithImageTitle:(NSString *)titlte
                                          target:(id)target
                                          action:(SEL)action;


@end



